package com.erpoa.config;

import com.erpoa.service.CarDataService;
import lombok.extern.apachecommons.CommonsLog;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @author chenjimin
 * @Title: WuliuTask
 * @ProjectName oaerp
 * @Description: TODO
 * @date 2020/12/2510:59
 */
@Component
@Configuration
@EnableScheduling
@CommonsLog
public class WuliuTask {

    private static final Logger logger = LoggerFactory.getLogger(EmailTask.class);

    @Resource
    private CarDataService carDataService;


    //每小时做补偿
    //   @Scheduled(cron="*/5 * * * * ?")
    @Scheduled(cron = "54 45 1 * * ?")
    public void taskEndFissionWanted() {
        logger.info("54 45 4 * * ?");
        // carDataService.compensateTrayNotask();
    }
}
